package companycomminutes;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class CompanyGroupAction extends ActionSupport{
	
	private ICompanyService iCompanyService;
	public void setiCompanyService(ICompanyService iCompanyService) {
		this.iCompanyService = iCompanyService;
	}

	public String execute() throws Exception {
		return getCompanygroup();
    }
	
	public Map getCountryList() {
		return countryList;
	}

	public void setCountryList(Map countryList) {
		this.countryList = countryList;
	}

	private Map countryList;
	public String getCompanygroup(){
		countryList=new HashMap();
		String node=ServletActionContext.getRequest().getParameter("node").trim();
		countryList.put("countryList", iCompanyService.getGroupByNode(node));	
		return SUCCESS;
	}
}
